home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / doc / spoiler / mag-extract < prev    next >
Text File  |  1996-07-24  |  314b  |  17 lines

  1. {
  2.     type = $1 + 0;
  3.     if (type == 99 || type == 100 || type == 113) {
  4.         if (type == 99) {
  5.             name = capitalize($2);
  6.             gsub("_", " ", name);
  7.         } else
  8.             name = capitalize($3);
  9.  
  10.         printf("%s &%s &%d &%s\\\\\n", name, $10, $8, $4);
  11.     }
  12.  
  13. function capitalize(str) {
  14.     return toupper(substr(str, 1, 1)) substr(str, 2);
  15. }
  16.